{block name='content'}
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body padding-40 margin-bottom-40">
        <div class="layui-form-item layui-row layui-col-space15">
            <div class="layui-col-xs6 block relative">
                <span class="color-green label-required-prev">会员名称</span><span class="margin-left-5 color-desc">VIP Name</span>
                <input class="layui-input" name="name" lay-verify="required" required value="{$vo.name|default=''}" placeholder="请输入会员名称">
            </div>

            <div class="layui-col-xs6 block relative">
                <span class="color-green label-required-prev">会员价格</span><span class="margin-left-5 color-desc">VIP Price</span>
                <input class="layui-input" name="amount" lay-verify="required|min:0" required value="{$vo.amount|default=''}" placeholder="请输入会员价格">
            </div>
        </div>

        <div class="layui-form-item layui-row layui-col-space15">
            <div class="layui-col-xs6 block relative">
                <span class="color-green label-required-prev">会员有效期</span><span class="margin-left-5 color-desc">VIP Days</span>
                <input class="layui-input" name="days" lay-verify="required|min:0|number" required value="{$vo.days|default=''}" placeholder="请输入会员有效期/天">
            </div>

            <div class="layui-col-xs6 block relative">
                <span class="color-green label-required-prev">会员描述</span><span class="margin-left-5 color-desc">VIP Summary</span>
                <input class="layui-input" name="summary" lay-verify="required" required value="{$vo.summary|default=''}" placeholder="请输入会员描述">
            </div>
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" lay-submit lay-filter="submit">保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-history-back>取消编辑</button>
    </div>
</form>
{/block}

{block name='script'}
<script>
    (function () {

        layui.form.render();

    })();
</script>
{/block}